startsWith

(alias) pure function startsWith(prefix: text): boolean

Deprecated

Use 'starts_with' instead

Checks if this text starts with the specified prefix.

Note that for all texts t, t.starts_with('') is true, and for all texts u and v such that u == v, u.starts_with(v) is true.

Alias

Alias target

Return

true if this text starts with the specified prefix, false otherwise

Since

0.9.0

Parameters

prefix

the prefix to check